-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[YUNIKORN-2446] Add OCI annotations to public docker images #889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea is sound.
I think we should add org.opencontainers.image.version
to match our existing Version
label as well.
We also should update image.source
and image.url
to be sourced from environment variables to allow customizing these as part of release builds. We don't want this metadata embedded if usera are generating custom binaries.
Finally, please open a parallel PR for the yunikorn-web repo so that we get that updated as well.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #889 +/- ##
=======================================
Coverage 68.07% 68.07%
=======================================
Files 70 70
Lines 7575 7575
=======================================
Hits 5157 5157
Misses 2203 2203
Partials 215 215 ☔ View full report in Codecov by Sentry. |
Thanks @craigcondit for the review! I also add more variables to increase consistency and reusability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me. @wilfred-s can you take a look as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved (tentatively pending Wilfred's comments)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryankert01 thanks for this patch. LGTM
What is this PR for?
source: apache/yunikorn-web#174 (comment)
OCI annotations: https://github.com/opencontainers/image-spec/blob/main/annotations.md
I believe most Yunikorn users are using the docker images into which we push, and so we should consider following a public protocol to set attributions for our public images.
Reference:
[1] Annotations and Labels in Container Images
[2] OCI annotation spec
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2446
How should this be tested?
Make all 3 images
Inspect if oci annotations is added into
config.labels
Screenshots (if appropriate)
Questions: